package com.d3works.studio.service.ws;

import com.d3works.exception.D3worksException;
import com.d3works.studio.db.WsAuthenticator;
import com.d3works.studio.db.WsConnector;
import com.d3works.studio.db.WsRequest;
import com.d3works.text.Templates;
import java.util.Map;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.Response;

public interface WsConnectorService {

  public Map<String, Object> callConnector(
      WsConnector wsConnector, WsAuthenticator authenticator, Map<String, Object> ctx)
      throws D3worksException;

  public Entity<?> createEntity(WsRequest wsRequest, Templates templates, Map<String, Object> ctx);

  public Response callRequest(
      WsRequest wsRequest, String url, Client client, Templates templates, Map<String, Object> ctx);
}
